<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-06-06
  Time: 19:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生考勤系统</title>
</head>
<body>

<form action="/add" method="post">
    <h1>学生考勤系统</h1>
    <table border="1">
        <tr>
            <td>学生姓名</td>
            <td>
                <select name="sid" id="">
                    <c:forEach items="${list}" var="stu">
                        <option value="${stu.sid}">${stu.sname}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td>考勤时间</td>
            <td><input type="datetime-local" name="time"></td>
        </tr>
        <tr>
            <td>考勤情况</td>
            <td>
                已到:<input type="radio" value="1" name="type">
                迟到:<input type="radio" value="2" name="type">
                旷课:<input type="radio" value="3" name="type">
            </td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="添加"></td>
        </tr>
    </table>
    </form>
</body>
</html>
